package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.coupons.domain.martcap.repository.IMultipleModelRepository;
import cc.lj.internal.coupons.infrastructure.po.MultipleModelPO;
import cc.lj.internal.coupons.interfaces.dto.query.MultipleModelListQuery;
import org.springframework.stereotype.Repository;
import javax.annotation.Resource;
import java.util.List;

@Repository("multipleModelRepository")
public class IMultipleModelRepositoryImpl implements IMultipleModelRepository {

    @Resource(name = "mysqlMultipleModelRepository")
    private IMultipleModelRepository mysqlRepository;

    @Override
    public Integer insert(MultipleModelPO multipleModelPO) {
        Integer id = mysqlRepository.insert(multipleModelPO);
        return id;
    }

    @Override
    public MultipleModelPO getById(Integer id) {
        return mysqlRepository.getById(id);
    }

    @Override
    public Integer updateById(MultipleModelPO multipleModelPO) {
        return mysqlRepository.updateById(multipleModelPO);
    }

    @Override
    public List<MultipleModelPO> getList(MultipleModelPO multipleModelPO) {
        return mysqlRepository.getList(multipleModelPO);
    }
}
